package day03;

import com.sun.org.apache.xpath.internal.objects.XString;

public class operemo {
    public static void main(String[] args) {

















        int unm=  0;
        int flag= unm>0?1:-1;//若为 true 则整个表达式的结果为？号后的数1 若为false 则整个表达式的结果为：号后的-1
        System.out.println(flag);
        int a =8 ,b = 10;
        int max = a>b?a:b;//false
        System.out.println(max);



























        int age=20;
        System.out.println(age);//20
        System.out.println("age");//age
        System.out.println("我今年"+age+"岁了");//我今年20岁了
        String name = "lhq";
        System.out.println("我叫"+name+"今年"+age+"岁了");//我叫lhq今年20岁了

        System.out.println(12+88+""+30);//10030------String
        System.out.println(""+12+79+2);//12792--------String
        System.out.println(45+56+32+"");//133-------string











        short s= 5;
        s += 10;//相当于s = (short) (s+10);
        System.out.println(s);

        int f =5;
        f +=10;//相对于a=(int)(f+10)
        System.out.println(f);
        f *= 2;//相当于f=(int)(f*2)
        System.out.println(f);
        f/=6;//相当于f=(int)(a/6)
        System.out.println(f);




















        //int a=5, b=6,c=5;
        /*boolean b2= a>b && c++>1;
        System.out.println(b2);
        System.out.println(c);/












//int a= 5, b= 10, c=5;
        //System.out.println(b>=a || b<c);//ture/false / ture
       //System.out.println(b<=c || b>a);//false/ture / ture

        int score=90;
        System.out.println(score<0 || score>100);//成绩不合法验证























        /*int a=5, b=10, c=21;
        boolean b1=b>a && b<c;
        System.out.println(b1);
        System.out.println(b<=c && a>b);
        int age= 38;//是否在18到60之间
        System.out.println(age>=18 && age<=60);//年龄在18到60之间/*














        /*int a= 8,b= 8, c=10;
        System.out.println(a<c);//false
        System.out.println(b<a);//false
        System.out.println(b==a);//ture
        System.out.println(a++>b);//false---  a自增1变成9
        System.out.println(a++>b);//ture---  a自增1变成10
*/
    }




























        //a++的值为a  a--的值为a
        //++a的值为a+1  a--的值为a-1


        /*int a= 67;
        int b= 37;
        int c= a--;//将a--的值67赋值给c，同时a自减1变成66
        int d= --b;//将--b的值36赋值给d，同时b自减1变成36
        System.out.println(a);
        System.out.println(b);
        System.out.println(c);
        System.out.println(d);
*/
    }

